The key to achieving the perfect texture is in the baking time. You want the brownie layer to be cooked through but still slightly fudgy, while the cookie dough on top should be golden brown and chewy. Test the brookies with a toothpick – it should come out with a few moist crumbs for the ideal gooeyness.