import aibrow from'@aibrow/extension'const { helper,extension } =awaitwindow.aibrow.capabilities()if (extension) {if (helper) {constsession=awaitwindow.aibrow.languageModel.create()conststream=awaitsess.promptStreaming('Write a poem about AI in the browser')forawait (constchunkof stream) {console.log(chunk) } } else {console.log('Aibrow helper not installed') }} else {console.log('Aibrow not installed')}