Preheat oven to 350°F (175°C) and line two baking sheets with parchment paper.
In a medium bowl, whisk together flour, cocoa powder, baking powder, baking soda, salt, cinnamon, chile powder, and espresso powder.
In a large bowl using an electric mixer, beat softened butter for 1 minute until smooth.
Add both sugars and beat on medium-high speed until light and fluffy (2-3 minutes).
Add eggs one at a time, beating well after each addition. Mix in vanilla extract.
Gradually add dry ingredients to wet ingredients, mixing on low speed just until combined.
Fold in chocolate chips or chunks with a rubber spatula.
In a small bowl, mix together sugar, cinnamon, and chile powder for coating.
Scoop dough (1.5-2 tablespoons per cookie) and roll into balls, then coat in sugar-spice mixture.
Place dough balls on prepared baking sheets, spacing 2 inches apart.
Bake for 10-12 minutes, until edges are set but centers still look slightly soft.
Allow cookies to cool on baking sheets for 5 minutes, then transfer to wire rack to cool completely.