While AI can add to technical debt if not used properly, it can also help development teams address existing technical debt.