apps script getcolumnwidth() for range of cells code example
Example 1: .setColumnWidths() google script
let SS = SpreadsheetApp.getActiveSpreadsheet();
SS.getActiveSheet().setColumnWidths(1, 3, 180)
//.setColumnWidths(beginColumn, amountOfColumnsToChangeFromBeginColumn, width)
Example 2: getranges google script
let SS = APP.getActiveSpreadsheet();
let sheetIndex0 = SS.getSheets()[0];
sheetIndex0.getRangeList(['A1', 'B1:C7']).setHorizontalAlignment("center");