Preheat the oven to 350 degrees F and line two baking sheets with parchment paper. Spread 1 cup of almonds in a single layer on one sheet and toast for 5 to 7 minutes until fragrant and lightly golden at the edges. Cool completely, then pulse in a food processor until finely ground with a few slightly larger pieces remaining.
Put 1 cup of softened unsalted butter and 1/2 cup of powdered sugar in a large bowl. Beat on medium speed for 2 to 3 minutes until pale, light, and fluffy. Beat in 2 teaspoons of vanilla extract, 1/2 teaspoon of almond extract, and 1/2 teaspoon of salt.
Add 1 cup of finely ground almonds and 2 1/2 cups of all-purpose flour to the bowl. Mix on low speed, or stir with a wooden spoon, just until the dough comes together into a soft, slightly crumbly ball. Stop as soon as no dry flour remains.
Scoop 1 tablespoon portions of dough and roll each one between your palms into a smooth ball about 1 inch across. Place 1 inch apart on the parchment-lined baking sheets. Bake for 15 to 17 minutes until the bottoms are lightly golden and the tops are pale and set. Cool on the baking sheet for 5 minutes, then move to a wire rack.
Sift 1/2 cup of powdered sugar into a shallow bowl. When the cookies are still barely warm, about 10 minutes off the baking sheet, roll each one gently in the sugar until coated. Let the cookies cool completely, about 20 minutes more, then roll them a second time in the remaining 1/2 cup of powdered sugar. Dust with a little extra sugar just before serving.
For the glazed sprinkle version (optional): let the baked cookies cool completely. Whisk 1 cup of sifted powdered sugar with 2 tablespoons of milk, 1/2 teaspoon of vanilla extract, and 1/4 teaspoon of almond extract until smooth. Dip the top of each cookie into the glaze, let the excess drip back for a few seconds, scatter rainbow sprinkles over the wet glaze right away, and let the glaze dry for 30 minutes before stacking or packing.