import "@johnlindquist/kit"
import Tesseract from 'tesseract.js'
const buffer = await screenshot()
const tmpImagePath = tmpPath('screenshot-ocr.png')
await writeFile(tmpImagePath, buffer)
const extractedText = await div({
html: md(`
## Extracting text from screenshot...
<img src="file://${tmpImagePath}" class="max-w-full max-h-96 object-contain" />