In the bowl of a stand mixer fitted with the flat beater attachment or working in a large mixing bowl with an electric hand mixer, beat the butter, sugar, salt, and espresso powder on medium speed until smooth (not light and fluffy. This will take 1-2 minutes.
Scrape the sides of the bowl, then beat in the egg and vanilla until fully combined.
Add the flour, cocoa, cornstarch, and baking soda all at once and mix until thoroughly incorporated. Scrape the bowl and mix again briefly.
Scoop the dough by the tablespoonful (about 24g each) and roll into balls; a level tablespoon cookie scoop works well here.
Place the balls of dough on the prepared baking sheets, leaving 1 1/2" between them.
Bake the cookies for 28 to 32 minutes, rotating the pans from top to bottom and back to front halfway through. The cookies are done when the edges and centers are firm and crisp; avoid soft centers.
Remove the cookies from the oven and allow them to cool completely before decorating, about 45 minutes.
Make the Glaze
In a small bowl, place the confectioners’ sugar. Add the water and vanilla and stir until is achieves a thin, paint-like consistency.
Use a pastry brush to apply a thin coating of glaze to every cookie. Allow the cookies to rest at room temperature, undisturbed, for 10 to 15 minutes until set.
Storage
Store leftover Halloween cookies, covered, at room temperature for several days. Freeze unglazed cookies for longer storage; freezing glazed cookies is not recommended.