In a large mixing bowl, cream together the softened butter, brown sugar, and granulated sugar until light and fluffy.
Beat in the egg and vanilla extract until well combined. Then mix in the brewed espresso or coffee until the batter is smooth.
In another bowl, whisk together the flour, baking soda, baking powder, pumpkin pie spice, ground cinnamon, and salt.
Gradually add the dry mixture to the wet ingredients, stirring until everything is just combined. Be careful not to overmix.
Fold in the chocolate chips and chopped walnuts (if using).
Cover the dough with plastic wrap and refrigerate for at least 30 minutes.
Preheat your oven to 350°F (175°C) and line a baking sheet with parchment paper.
Using a cookie scoop or tablespoon, drop balls of dough onto the prepared baking sheet, leaving space between each cookie as they will spread.
Bake in the preheated oven for 10-12 minutes, or until the edges are golden and the centers are just set.
Remove from the oven and let the cookies cool on the baking sheet for about 5 minutes before transferring them to a wire rack to cool completely.
Notes
Serve the cookies on a festive plate sprinkled with a little extra pumpkin pie spice for an inviting autumn look. Enjoy with a hot cup of coffee or tea!