01 - Line an 8x8-inch baking pan with parchment paper, ensuring the paper overhangs the edges for easy removal later.
02 - Place walnuts and almonds in a food processor. Pulse until finely chopped but not completely pulverized into butter.
03 - Add pitted dates, cacao powder, sea salt, and vanilla extract if using. Blend until the mixture becomes sticky and begins to clump together, stopping to scrape down the sides as needed.
04 - Add chocolate chips or shredded coconut if desired. Pulse just 2-3 times to distribute evenly without breaking down the add-ins.
05 - Transfer the mixture to the prepared pan. Press firmly and evenly using the back of a spatula or your hands to create a uniform layer.
06 - Refrigerate for at least 30 minutes until the mixture firms up completely and holds its shape when cut.
07 - Lift the entire block out of the pan using the parchment paper overhang. Use a sharp knife to slice into 12 even squares. Serve chilled for best texture.