When it starts to foam and smell like nutty caramel, use a spoon to take some of the melted butter out and check if there are brown solids on the bottom of the pan. If you are happy with the colour, pour the browned butter into a heatproof bowl or container, and set aside overnight or until it congeals.