Using an electric mixer, beat butter, sugar and salt in a large bowl, scraping down sides and bottom of bowl as needed, until light and creamy, about 3 minutes.
Add egg yolks and vanilla and beat until incorporated, about 1 minute.
Reduce speed to low, add 2 cups flour, and mix until incorporated. Dough will be semifirm but can be rolled out without chilling. If your kitchen is very warm and/or dough is sticky, pat it into a 1"-thick disk, wrap in plastic, and chill 15 minutes to let firm up before rolling out.
Preheat oven to 350°.
Roll out dough on a lightly floured sheet of parchment paper, dusting with more flour as needed to keep dough from sticking, to about ¼" thick.
Punch out shapes as desired with lightly floured cookie cutters and transfer to 2 parchment-lined baking sheets, spacing 1½" apart.
Pat scraps into a 1"-thick disk, wrap with plastic, and chill 10 minutes if soft. Repeat process.
Bake cookies 10-15 minutes, rotating halfway through, until edges are golden brown.
Let cookies cool 10 minutes on baking sheet, then transfer to a wire rack and let cool completely.