You should cool brown butter at least 10-15 minutes before adding it to cookie dough to ensure that you don't melt the butter and alter the texture of the cookie. You want the butter to be close to room temperature so that it creams together with the sugar like most standard cookie recipes.