I want to use web3.utils.fromWei library https://web3js.readthedocs.io/en/v1.2.11/index.html, but I don't know how to import it in my code
I'm writing the code directly inside my website/host because I'm not an expert in dealing with local servers or Visual Studio Code react
var max = 1000000000000000000;
var dead = 5655521545895245645123154;
max = web3.utils.fromWei(max, 'ether');
dead = web3.utils.fromWei(dead, 'ether');
const total = max - dead;
document.getElementById('total ').innerHTML =total ;
<html lang="en">
<head>
<meta charset="utf-8">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div >
<div class="w3-display-middle">
<span id="total"></span>
</div>
</div>
</body>
</html>