feat(trace): more trace fixes (#9474)
### Description
A couple small fixes for tracing:
- Add more extensions for support
- Add more files to look at for a main file (`module` is non-standard
but common)
- Try resolving `@types/<package>` if `<package>` fails to resolve
### Testing Instructions
Added tests for new extensions, for module field, and for importing
types from `foo` that really come from `@types/foo`
<!--
Give a quick description of steps to test your changes.
-->