Hello,
One possible solution:
function window.afterrender(sender, eOpts)
{
if (this.tools && this.tools.close) {
this.tools.close.setHtml('<i class="fas fa-times"></i>');
/*this.tools.close.setHtml('<i style="color:black" class="fas fa-times"></i>');*/
}
}