Brew the coffee: Make 2 shots of espresso or brew 1/2 cup of very strong coffee. Set aside.
Warm the milk: In a small saucepan over medium heat, warm the milk until it’s hot but not boiling.
If you have a frother, you can use it later for foam.
Make the chocolate base: In a mug, whisk together the cocoa powder, sugar, and a splash of hot milk to form a smooth paste. Add the pinch of salt.
Combine and dissolve: Pour in the remaining hot milk while stirring. Make sure the cocoa and sugar are fully dissolved.
Add flavors: Stir in the peppermint extract (start with 1/8 teaspoon) and vanilla extract if using.
Add coffee: Pour in the espresso or strong coffee.
Taste and adjust sweetness and mint level if needed. If you like it extra chocolatey, add another teaspoon of cocoa and a bit more sugar, then stir well.
Finish and garnish: Top with whipped cream if you like. Add chocolate shavings or a sprinkle of crushed candy cane.
Serve hot.