Whisk the flour, baking soda, spices, and salt together until combined. Set aside.
In a large bowl using a hand-held or stand mixer fitted with a paddle attachment, beat the butter and both sugars together on high speed until creamy and combined, about 2 minutes. Add the molasses and beat until combined. Then add the egg and vanilla extract and beat until combined, about 1 minute. Scrape down the sides and bottom of the bowl as needed.
On low speed, slowly mix the dry ingredients into the wet ingredients until combined. The cookie dough will be slightly sticky. Cover dough tightly plastic wrap and chill for 1 hour and up to 2-3 days.