In a mixer, beat butter and sugar until well combined, about 2 minutes.
Add in 2 eggs and 2 egg yolks and mix until combined.
Add in vanilla and almond extract; mix until combined.
In a separate bowl, sift together flour, salt, and baking powder. Slowly (about a cup at a time) add flour to butter mixture and combine. You can use a mixer or not, just depends on how strong you are.
I usually just mix ingredients until they are combined.
Put dough in plastic wrap and refrigerate for at least one hour. When you are ready to bake, heat oven to 350 degrees.
Roll dough out, cut out cookies, and bake for 6-8 minutes.