Add sugar, heavy whipped cream, and butter to a medium saucepan. Whisk over medium-low heat until mixture starts to thicken (about 5 minutes). Add vanilla and salt. Keep whisking for another 2 min. Remove from heat. Pour into a glass container. Let cool. Cover and store in the refrigerator for up to two weeks.