For Intellij/Webstorm it works only with a jsx/html, but there is a trick that make it works for js/ts files as well. It needs to be wrapped into the HTML tag.
Written
const dummy = '<p>lorem10</p>'
Expanded to
const dummy = '<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ut, voluptas?</p>'