You may have a small amount of frosting left over. It will keep airtight in the refrigerator for up to 1 month.
Cupcakes will keep airtight at room temperature for up to 3 days. I personally am comfortable storing cream cheese-frosted items at room temp, but if you prefer to store in the fridge, that’s fine, but note the fridge will dry cupcakes out much more quickly.