Add powdered sugar and salt; beat at medium-low speed until most of the sugar is moistened. Scrape down the bowl and beat at medium speed until mixture is fully incorporated, about 30 seconds; scrape bowl, add vanilla and heavy cream or milk, and beat at medium speed until incorporated, about 20 seconds.