xxxxxxxxxx
const element = document.getElementById('elementId'); // Replace 'elementId' with the actual ID of the element you want to set the text content of
if (element) {
element.textContent = 'New text content';
} else {
console.log('Element not found.');
}