US thin-film photovoltaics (PV) maker First Solar Inc (NASDAQ:FSLR) swung to a net loss in 2022, mainly due to increased costs, but projects positive earnings in 2023.