Open or create a .ts file and import necessary type definations, then enjoy!
import { request } from 'xshell'
// start REPL
await request('https://shenhongfei.com')
// select the above line and press Ctrl + Enter, then you can inspect the result in xshell.
Development
Change "main" field in package.json to extension.js before release extension.