In a separate bowl, whisk together your flour, unsweetened cocoa powder, cornstarch, baking soda, and salt. Whisking for about 30 seconds aerates the dry ingredients and distributes the leavening agent evenly. This prevents pockets of baking soda that could create an unpleasant soapy flavor.
The cornstarch is doing important work here. It reduces the gluten network in the flour, which is exactly what you want for a tender, chewy cookie rather than a tough, dense one.