module: add some typings to internal/modules/esm/resolve
#39504
+121
−10
Merged