Preheat the oven to 350°F (175°C) and line an 8×8 baking pan with parchment paper.
In a large bowl, cream the butter, granulated sugar, and brown sugar together on medium speed until smooth and creamy (about 2 minutes). Add the egg, vanilla extract, and almond extract (if using), and beat until combined.
1/2 cup butter, 1/2 cup granulated sugar, 2 tbsp brown sugar, 1 large egg, 2 tsp vanilla extract, 1/4 tsp almond extract
Mix in the flour, cornstarch, baking powder, and salt just until the flour mixture disappears and a soft dough forms.
1/2 tsp baking powder, 1 & 1/2 cup all purpose flour, 1 tbsp cornstarch, 1/4 tsp salt
Press the dough evenly into the prepared baking pan and bake for 16 to 18 minutes. The edges should be pale golden and the center set but still soft. Do not overbake! Allow to cool completely in the pan before frosting.
Frosting
In a large bowl, whip the softened butter and powdered sugar together until smooth.
4 tbsp butter, 1 & 1/2 cup powdered sugar
Add the vanilla extract and 1 tablespoon of heavy cream, whipping on high speed for 1–2 minutes until light and fluffy. (Add an extra tablespoon of cream only if needed for spreadability).
1 tsp vanilla extract, 2 tbsp heavy cream
Spread evenly over the cooled cookie base, top with Christmas sprinkles, then slice into 16 bars. Chill briefly first if you want the frosting set for cleaner squares.
Christmas sprinkles
Notes
Don't overbake. Pull the bars at 16 to 18 minutes, when the edges are pale golden and the center is set but still soft. They finish setting as they cool and stay soft.
Cool before frosting. Let the bars cool completely before frosting, or the buttercream will melt and slide off.
Storage. Store covered in the fridge for up to 7 days, or freeze frosted bars with parchment between layers for up to 3 months.