The definition of IRR can be made in terms of NPV. When the NPV = 0, the IRR of the project is equal to the discount rate used in calculating the NPV.
This is in fact the way that IRR is found. An iterative method is used with the discounted cash flow to change the discount rate by small amounts step by step until NPV = 0. When NPV = 0, then IRR = discount rate.