Preheat the Oven: Start by preheating your oven to 350°F (175°C) and lining a baking sheet with parchment paper.
Cream the Butters and Sugars: In a large mixing bowl, cream together the softened butter, brown sugar, and granulated sugar until the mixture is smooth.
Add the Eggs: Beat in the eggs one at a time, ensuring each one is well incorporated before adding the next.
Mix Dry Ingredients: In another bowl, combine flour, coffee grounds, baking soda, and salt, whisking them together to blend.
Combine Mixtures: Gradually add the dry ingredients to the wet ingredients, stirring until just combined. If you're including chocolate chips, fold them in at this point.
Shape the Cookies: Drop spoonfuls of the cookie dough onto your prepared baking sheet, making sure to leave some space between them.
Bake: Place the cookies in the oven and bake for 10-12 minutes until the edges are lightly golden.
Cool Down: Allow the cookies to cool on the baking sheet for a few minutes before transferring them to a wire rack to cool completely.