Line a sheet pan with parchment paper and make space in your freezer for the sheet pan to sit level (if a sheet pan won’t fit in your freezer, you can just chill the dough on a plate then transfer to a sheet pan once chilled)
Whisk together coconut oil, sugar, egg, and vanilla. Add all remaining ingredients, including chocolate, and stir well to combine.
Use a small cookie scoop to portion the dough out onto the cookie sheet in 12 2-Tablespoon sized balls. Place the sheet pan in the freezer for 10 minutes to let cookie dough firm up- this step is essential to yield the shape and texture of the cookies shown in the photos. Unchilled dough will spread into large, flat, thin cookies.
While cookies chill, preheat oven to 350 degrees Fahrenheit.
Once oven is preheated, bake cookies for 8-10 minutes, or until edges are crispy and centers are still slightly underbaked- the cookies will continue to cook on the pan while they cool, and are best if still soft in the middle when they come out of the oven! Sprinkle cookies with a few pinches of flaky sea salt as soon as they come out of the oven, if desired.
Let cookies cool at least 15 minutes on the pan before serving. Cooled comletely, these cookies keep in an airtight container at room temperature for 3-5 days.