import { getOriginalColumnNames } from "./getOriginalColumnNames" ; import { getColumnPositionByName } from "./getColumnPositionByName" ; import { getSheetForSyncing } from "./getSheetForSyncing" ; export function hideOriginalColumns ( _sheet ? ) { const sheet = typeof _sheet === "undefined" ? getSheetForSyncing ( ) : _sheet ; if ( sheet !== null ) { getOriginalColumnNames ( ) . forEach ( ( name ) : void => { const position = getColumnPositionByName ( name ) ; sheet . hideColumns ( position ) ; } ) ; } }