As a general rule of thumb, you should refrigerate cookie dough for at least 30 minutes and up to 24 hours.
Should you chill cookie dough before rolling?
Don't chill the dough, but roll it out immediately instead! ... Rolling out just-made cookie dough is easy since it's still really soft and pliable, and you don't have to worry about cookie dough that's so cold from the chilling process that it cracks and has to warm up on the counter again before you can work with it.
Does raw cookie dough need to be refrigerated?
The cookie dough doesn't need to be refrigerated - although it will remain firmer if kept in the fridge. It is best to eat the dough within 2-3 days. The dough can also be frozen, for 2-3 months. Just defrost at room temperature.