In a large mixing bowl, beat the softened butter and granulated sugar together with an electric mixer on medium speed until light and fluffy, about 2-3 minutes. Add the egg, vanilla extract, and almond extract (if using). Beat until well combined.
In a separate bowl, whisk together the all-purpose flour and salt. Gradually add the dry ingredients to the wet ingredients, mixing on low speed until just combined. The dough should be soft but not sticky.
If the dough is too soft to handle, cover it and refrigerate for about 15-30 minutes to firm up slightly.
Preheat your oven to 350°F (175°C). Line baking sheets with parchment paper or silicone baking mats.
Transfer the dough into a piping bag fitted with a large open star tip (such as Wilton 1M or 4B).
On the prepared baking sheets, pipe the dough into desired shapes such as circles, swirls, or "S" shapes, leaving about 1 inch (2.5 cm) of space between cookies.
If the dough becomes too stiff to pipe, allow it to sit at room temperature for a few minutes to soften.
Bake in the preheated oven for 10-12 minutes, or until the edges are just beginning to turn light golden brown.
Remove from the oven and allow the cookies to cool on the baking sheet for 5 minutes. Transfer the cookies to a wire rack to cool completely.
Store any leftovers in an airtight container at room temperature for up to 2 weeks.