Preheat the oven to 325 degrees F.
In a heatproof bowl set over simmering water, melt the butter and chocolate together, whisking until glossy and smooth. Alternately, the butter and chocolate can be melted in the microwave (in a microwave-safe bowl) in 25-second increments, whisking between each interval. Cool the chocolate mixture to room temperature.
In the bowl of a stand mixer fitted with the paddle attachment (or a hand-held mixer), beat the brown sugar, granulated sugar, vanilla extract and eggs on low speed until well combined.
Pour in the cooled chocolate and continue to mix until the ingredients are evenly distributed.
In a medium bowl sift together the flour, cocoa powder, cinnamon, chili powder, baking soda, salt and cayenne pepper.
Add the dry ingredients to the chocolate batter and mix on low speed until just combined and no visible flour remains.
Fold in the chocolate chips with a rubber spatula or wooden spoon.
Working in two batches, scoop 12 balls of dough (preferably using a small ice cream scoop with a spring handle, about 1 1/2 tablespoon size) onto a parchment-lined sheet pan, leaving at least 1 1/2 inches of space between each cookie.
Bake the cookies, one pan at a time, for approximately 14 minutes, rotating the pan halfway through cooking time. The cookies should be puffy and still fairly soft when removed from the oven.