I found it working this way:
async function hideUnhideColumnAsync(hidden) {
return Excel.run(async (context) => {
let targetSheet = context
.workbook
.worksheets
.getItem('MyWorkSheet');
targetSheet.getRange('A:A').columnHidden = hidden;
return await context.sync();
});