Beat the softened butter and sugar together until smooth and pale, about 2 minutes.
Beat in the egg, vanilla, and almond extract until fully combined, scraping down the bowl as needed.
On low speed, add the flour and salt and mix just until combined.
Add 1½ tbsp of milk and mix, adding more a little at a time until the dough pipes without resistance.
Fit a piping bag with a large tip (about ½-inch opening) and pipe 1 to 2-inch swirls spaced about 3 inches apart.
Chill the piped cookies on the baking sheet for 20 to 25 minutes before baking.
Preheat the oven to 350°F (177°C) and bake for 12 to 14 minutes, until the edges are lightly golden.
Let the cookies cool on the baking sheet for 5 minutes, then move to a wire rack to cool completely.