Its very simple @user,
Simply open your eclipse and then follow the following steps:
1. Click on help and then go eclipse market place.
2. Search for TestNG and click on Install.
3. Select the packages that you want to Install.
4. Confirm the installation.
5. Accept the agreement.
6. Wait for the installation to complete.
You have installed TestNG successfully.
Hope this helps.