Before undertaking any repair himself, except repair to minimize loss or damage as provided in Section 83-58-5(2)(d), or instituting any action under Section 83-58-17, the owner shall give the builder written notice within ninety (90) days after knowledge of the defect by registered or certified mail, advising him of the defects and giving the builder a reasonable opportunity to repair the defect. The builder shall give the owner written notice of the requirements of this chapter at the time of closing. If the builder does not provide such notice, the warranties provided in this chapter shall be extended for a period of time equal to the time between the warranty commencement date and date notice was given.