`); printWindow.document.close(); }; const getUserFullName = (email) => { const user = allUsers.find(u => u.email === email || u.id === email); return user ? user.fullname : (email ? email.split('@')[0] : 'N/A'); }; window.onload = () => { // Set up init after all global window variables are ready init(); };