First, your cookies should be completely cooled before any icing is added. If you'll be adding details to a base layer of icing, give your first color a few hours to dry before adding on. Then, let your final product dry overnight or up to 24 hours to let them set up before stacking or wrapping.