Chrome Close Tab po wydrukowaniu
window.onafterprint = () => {
window.close();
}
Namidu
window.onafterprint = () => {
window.close();
}