Whisk the flour, baking soda, baking powder and salt together in a medium bowl.
Beat the softened butter with 1 1/2 cups sugar for 2 to 3 minutes, until pale and fluffy.
Beat in the egg, vanilla and almond extract, if using, scraping down the bowl as you go.
Add the dry ingredients on low speed just until no flour streaks remain. Cover and chill the dough for 30 minutes.
Heat the oven to 350°F (175°C) and line two baking sheets with parchment paper.
Put the remaining 1/4 cup sugar in a small bowl. Scoop 1 1/2-tablespoon balls, roll each in sugar, and place 2 inches apart.
Bake for 8 to 10 minutes, until the edges are set and only barely golden.
Leave the cookies on the pan for 5 minutes, then move them to a wire rack to cool completely.