Preheat your oven to 350°F (175°C) and line a baking sheet with parchment paper.
In a large mixing bowl, cream together the softened butter, brown sugar, and granulated sugar until light and fluffy.
Add the pumpkin purée, egg, and vanilla extract to the butter-sugar mixture. Mix well until fully combined.
In a separate bowl, whisk together the flour, baking soda, pumpkin pie spice, and salt.
Gradually add the dry ingredients to the wet mixture, folding gently until just combined. Be careful not to overmix.
Fold in the chocolate chips and chopped pecans (if using) until evenly distributed.
Using a tablespoon or cookie scoop, drop spoonfuls of dough onto the prepared baking sheet, leaving a couple of inches between each cookie.
Bake in the preheated oven for 12-15 minutes, or until the edges are lightly golden and the centers appear set.
Once baked, remove the cookies from the oven and let them cool on the baking sheet for 5 minutes before transferring to a wire rack to cool completely.