Preheat oven to 350°F (175°C) and line an 8-inch square pan with parchment.
Melt unsalted butter in saucepan, whisking in cocoa powder until smooth.
Whisk granulated sugar, eggs, and vanilla extract into warm cocoa butter mixture.
Stir in flour, baking powder, and salt until batter is smooth and glossy.
Fold in sweetened shredded coconut flakes, spreading batter into prepared baking pan.
Bake twenty-five minutes until edges are set and center is slightly fudgy.
Cool completely in pan before lifting parchment paper and slicing into squares.