Prepare the Cupcakes:
Preheat your oven to 350°F (175°C). Line a muffin tin with cupcake liners.
In a bowl, whisk together flour, ground pistachios, baking powder, and salt.
In a separate bowl, cream the butter and sugar until light and fluffy.
Beat in the eggs, one at a time, followed by the vanilla and almond extracts.
Gradually add the dry ingredients to the wet ingredients, alternating with the milk, beginning and ending with the dry ingredients. Mix until just combined.
Divide the batter evenly among the cupcake liners, filling each about 2/3 full.
Bake for 18-20 minutes or until a toothpick inserted in the center comes out clean.
Let the cupcakes cool in the tin for 5 minutes, then transfer to a wire rack to cool completely.
Make the Pistachio Buttercream Frosting:
In a mixing bowl, beat the butter until creamy.
Gradually add the powdered sugar, mixing until smooth.
Mix in the pistachio paste or ground pistachios, vanilla extract, and 2 tablespoons of heavy cream. Beat until light and fluffy, adding more cream if needed for a spreadable consistency.
Frost and Garnish:
Pipe or spread the frosting onto the cooled cupcakes.
Garnish with chopped pistachios for added crunch and visual appeal.