 new Promise(res => setTimeout(res, 5000));
            const status = await run('pgrep -f "nfqws" >/dev/null && echo "Running" || echo "Stopped"');
            if (status.trim() !== 'Stopped') console.error('nfqws did not stop');
        }
        await fetchData();
    } finally {
        hideLoading();
    }
});
                strategySelect.addEventListener('change', async (e) => {
                    await run(`echo '${e.target.value}' > ${MODPATH}/config/current-strategy`);
                });
      