Preheat oven to 350°F. Line a sheet pan with parchment paper or a silicone mat.
In the bowl of a stand mixer fitted with a paddle attachment, beat the butter and sugars together on medium high speed until pale and creamy, about 3 minutes. Add the eggs one at a time, mixing after each. Add the vanilla extract.
In a separate bowl, stir together the flour, cocoa powder, cinnamon, cayenne pepper and salt. Add to the mixer and mix until combined. Stir in the chopped chili chocolate. The dough will be very thick.
Roll into rounded tablespoons and roll in the coarse sugar, if desired. Place on the prepared sheet and press down on the rounds so that they have a flat top. Bake until tops are cracked and edges are set, 8-10 minutes. Let cool on the sheet pan for 5 minutes, then transfer to a wire rack to cool completely.
Store the cookies in an air-tight container at room temperature for up to 5 days.
Calories: 176kcal, Carbohydrates: 26g, Protein: 2g, Fat: 8g, Saturated Fat: 5g, Cholesterol: 29mg, Sodium: 59mg, Potassium: 82mg, Fiber: 1g, Sugar: 16g, Vitamin A: 232IU, Vitamin C: 1mg, Calcium: 17mg, Iron: 1mg