You can simply use JSDoc for this purpose. Take for example the following snippet:
/**
* @type {import("react").CSSProperties}
*/
const padStyle = {
bottom: '20vh',
right: '20vw'
}
export default padStyle
Vs code understands the JSDoc annotation and voila: