Bring sugar, milk, cream, and spices to a boil in a pan over medium-high heat, stirring occasionally until sugar is dissolved and the mixture is syrupy. Reduce the heat to low and whisk in vanilla extract.
Take the pan off the heat. Coffee creamer made like this can be served right away, or allowed to cool completely before being stored in jars in the refrigerator for up to a week.