Taiwanese chipmaking giant TSMC on Thursday announced a better-than-expected net profit for the fourth quarter as it benefits from booming demand for AI technology.