01 - Preheat oven to 350°F (175°C). Line two baking sheets with parchment paper.
02 - In a medium bowl, whisk together flour, cocoa powder, baking soda, salt, cinnamon, ginger, cloves, and nutmeg. Set aside.
03 - In a large bowl, beat butter, brown sugar, and granulated sugar together until light and fluffy, about 2 to 3 minutes.
04 - Incorporate eggs one at a time, then stir in vanilla extract and espresso powder until evenly mixed.
05 - Gradually fold the dry ingredient mixture into the wet ingredients, mixing just until incorporated to avoid overworking.
06 - Fold in semi-sweet chocolate chips and optional chopped dark chocolate evenly through the dough.
07 - Drop rounded tablespoons of dough onto prepared baking sheets, spacing each about 2 inches apart.
08 - Bake for 10 to 12 minutes or until edges are set but centers remain slightly soft.
09 - Allow cookies to cool on the baking sheet for 5 minutes before transferring to a wire rack to cool completely.