Heat the cocoa mixture.
Combine the half-and-half and cocoa powder in a medium saucepan. Place over medium-low heat and heat until the mixture begins to boil. Remove from the heat and set aside.
Beat the yolks and sugar.
Combine the egg yolks and granulated sugar in a mixing bowl. Beat for approximately 3–4 minutes until pale and smooth.
Temper the eggs.
Remove one-third of the egg-yolk mixture. Whisk it into the warm cocoa and half-and-half mixture until smooth. Gradually pour the warm milk mixture into the remaining egg mixture while whisking continuously.
Cook the custard.
Return the combined mixture to the saucepan. Cook over low heat until thickened and the temperature reaches 170°F.
Strain the mixture.
Pour the custard through a fine-mesh strainer to remove any cooked egg particles.
Add the heavy cream.
Stir the heavy cream into the strained custard until fully incorporated.
Chill overnight.
Transfer the chocolate mixture to an airtight container and refrigerate overnight. During this time, freeze the ice cream maker's removable container according to the manufacturer's instructions.
Toast the almonds.
Place the almonds in a small saucepan over medium-high heat. Toast for 6–8 minutes, tossing as they heat. Remove from the pan and chop into medium-fine pieces.
Churn the custard.
Transfer the thoroughly chilled chocolate mixture to the frozen ice cream maker container. Churn according to the manufacturer's instructions until the mixture reaches a soft-serve consistency.
Add the chocolate and almonds.
Add the shaved dark chocolate and chopped toasted almonds when the ice cream reaches the soft-serve stage. Allow the machine to incorporate them.
Add the fudge swirls.
Transfer the churned ice cream into a metal bread pan or tin pan. Add the room-temperature hot fudge and gently swirl it through the mixture.
Freeze until solid.
Cover the pan with plastic wrap and transfer it to the freezer. Freeze until the ice cream is solid enough to scoop.