In IDEA there is live template soutm which prints method name in Java files.
soutm
Can I define such live template for javascript and typescript files in IDEA?
You can use jsClassName() and jsMethodName() built-in functions for this:
jsClassName()
jsMethodName()