It takes at least 8 hours for royal icing to dry and set enough to pack cookies into storage containers without risk of damaging the icing.