01 - Preheat oven to 350°F. Line two baking sheets with parchment paper.
02 - Whisk together flour, cocoa powder, baking soda, salt, cinnamon, and nutmeg in a large bowl.
03 - Whisk melted coconut oil and brown sugar until smooth in a separate bowl.
04 - Dissolve instant espresso powder in plant-based milk, then stir into the wet mixture along with vanilla extract. Mix thoroughly.
05 - Gradually fold the dry ingredients into the wet ingredients until just incorporated.
06 - Fold in chocolate chips and walnuts, if using.
07 - Scoop tablespoon-sized portions onto prepared sheets, spacing approximately 2 inches apart.
08 - Bake for 11 to 13 minutes until edges are set but centers remain slightly soft.
09 - Allow cookies to cool on baking sheets for 5 minutes before transferring to wire racks to cool completely.