Preheat the oven to 350°F. Beat the butter and sugar together until light and fluffy. Add the egg and continue to beat until the mixture is light and fluffy.
In a separate bowl, mix the mashed bananas and baking soda. Let sit for 2 minutes. The baking soda will react with the acid in the bananas which in turn will give the cookies their lift and rise.
Mix the banana mixture into the butter mixture.
Whisk together the flour, salt, and spices. Add to the butter and banana mixture and mix until just combined.
Fold pecans or chocolate chips (if using) into the batter.
Drop in dollops onto parchment paper-lined baking sheet. Bake for 11-13 minutes or until nicely golden brown. Let cool on wire racks.