module: add some typings to internal/modules/esm/resolve
#39504
Merged
internal/modules/esm/resolve
#39504