For Typescript, and I believe many languages now, the command to Show call hierarchy exists.
Additionally there are extensions in the marketplace that will provide a visual representation of the function call hierarchy. For example, the AtomicViz extension available here.