Line an 8x8-inch square metal baking pan with parchment paper, buttering paper lightly.
In a heavy 3-quart saucepan, whisk together granulated sugar, cocoa powder, and salt.
Stir in whole milk with a wooden spoon until completely combined.
Cook over medium heat, stirring constantly until mixture comes to a full rolling boil.
Attach a candy thermometer; reduce heat to medium-low and cook without stirring until thermometer reads exactly 234°F (112°C soft-ball stage).
Immediately remove saucepan from heat; drop butter slices and vanilla extract on surface of hot syrup without stirring.
Let pot rest completely undisturbed at room temperature for 30 minutes until lukewarm (about 110°F / 43°C).
Beat mixture vigorously with a sturdy wooden spoon for 5 to 7 minutes until fudge loses its glossy shine and becomes thick and creamy.
Quickly scrape fudge into prepared pan and smooth top before it sets; let cool completely for 1 hour before slicing into 25 squares.