/** @param {NS} ns */ export async function main(ns) { const doc = eval("document"); // Check if the background div already exists let backgroundDiv = doc.getElementById("terminal-background"); if (backgroundDiv) { // Change the background image backgroundDiv.style.backgroundImage = "url('https://example.com/new-image.jpg')"; // Replace with your new image URL ns.tprint("Background image changed successfully."); } else { ns.tprint("No background found to change."); } }