Place the butter and sugar in the bowl of a stand mixer. Beat on medium speed until fluffy, about 3–4 minutes.
Turn off the mixer and add the egg and vanilla. Beat until combined.
In a medium bowl, combine the cocoa, flour, baking soda, and salt. Whisk to combine.
With the mixer on low, add half of the buttermilk. Once it is incorporated, add half of the flour mixture. Repeat with the remaining buttermilk and flour mixture.
Add the chopped pecans and mix until just combined. Refrigerate the dough for at least 2 hours, or up to 48 hours.
Preheat the oven to 375°. Use a spoon to scoop out one tablespoon of dough and place on a cookie sheet lined with parchment paper or a silicone mat. Repeat with the remaining dough, leaving 3 inches of space between each tablespoon of dough (the cookies will spread).
Bake for 8–10 minutes, until the cookies no longer look wet on top. Let sit for 5 minutes on the cookie sheet. Remove the cookies and place on a cooling rack.
For the frosting:
Place the unsweetened chocolate in a microwave-safe bowl. Microwave in 20 second increments until melted.
Place the softened butter, melted chocolate, powdered sugar, vanilla, and 2 tablespoons milk in a large bowl. Use a handheld mixer to mix until it reaches frosting-like consistency and the powdered sugar is incorporated. Add an additional tablespoon of milk if the mixture looks too stiff.
Frosting the cookies:
Use an offset spatula to spread approximately 2 tablespoons of frosting on each cookie. Serve with a tall glass of milk!
Notes
These cookies are known for sticking to baking pans, so use a silicone mat or parchment paper so you don't have to scrape off crumbs later!Don't have buttermilk? Pour 1 tablespoon of vinegar or lemon juice into a glass measuring cup. Fill the cup up to the ¾ cup line with milk. Let sit for 5 minutes and use as directed.