Close LightBox on mouseOut

hi,
i try this but i canot find how to close the lightbox on mouseOut

import wixWindow from ‘wix-window’;

export function buttonPrinter_mouseIn(event, $w) {
wixWindow.openLightbox(“PrinterBox”)//Add your code for this event here:
}

export function buttonPrinter_mouseOut(event, $w) {
//Add your code for this event here:
}

export function PrinterBox_mouseIn(event, $w) {
wixWindow.openLightbox(“PrinterBox”)//Add your code for this event here:
}

export function PrinterBox_mouseOut(event, $w) {
wixWindow.lightbox.close() // not work :
}

Hi!

Make sure that the function that closes the Lightbox is located in the page of the Lightbox itself.
If thats not the issue please share a link to your site so one of us, the WixCode team, can look into it.

Doron.