Use the correct section for your question next time, you say you have a Pico, but you posted in the section for Espruino on ESP8266 (this section, per the sticky thread at the top "what goes here" is for discussion of the ESP8266 port of Espruino, not use of an ESP8266 to provide internet access to another board running Espruino). @Gordon, can you move this when you see it?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Use the correct section for your question next time, you say you have a Pico, but you posted in the section for Espruino on ESP8266 (this section, per the sticky thread at the top "what goes here" is for discussion of the ESP8266 port of Espruino, not use of an ESP8266 to provide internet access to another board running Espruino). @Gordon, can you move this when you see it?
Have you read http://espruino.com/Internet and http://www.espruino.com/ESP8266 ? They contain a lot of information about how to set something like this up, with example code and all.