Preheat the oven to 350ºF and prepare two large cookie sheets with parchment paper.
In the bowl of a stand mixer or in a large mixing bowl with electric beaters, cream the butter and sugar together on high for 2 minutes or until light and fluffy.
Add in the sour cream/yogurt and peppermint extract and mix on high for another 2 minutes.
Add in the flour, cocoa powder, xanthan gum (if using), baking soda, baking powder, and salt and turn the mixer on low and allow to mix until a dough forms.
Add in the chocolate chips and mix until just combined.
With a medium 1½ tablespoon cookie scoop, scoop the cookie dough and place it on the prepared cookie sheet approximately 2 inches apart from each other. Press down on each cookie dough ball slightly if you desire a flatter cookie.
Bake for 8-10 minutes or until the edges are slightly dry and cracked and the center of the cookie appears to be a bit underbaked.
Remove from the oven and bang the pan firmly against a counter to help deflate the cookies if desired. With a butter knife, spoon, or overturned glass, gently push any wonky edges bits back to form a perfectly round cookie. Allow the cookies to cool on the cookie sheets fully. Enjoy!
Store leftover cookies in an airtight container at room temperature for up to 7 days or in the freezer for up to 6 months.
