If you know you're not gonna finish all cupcakes in one go, I suggest you frost only as many as you will eat. Prep the rest of the icing in a bag and keep in the fridge for when you want to eat the rest. If you already frosted the cupcakes you want to save, then stick them in the fridge and they will still be good for 3-4 days.