there is two earths, one for the secondary (high voltage) and one for the primary (low voltage)
On the factory wiring, the secondary is grounded to the valve cover, and the primary is grounded to the ECU main earth point behind the coolant bottle.
When i did mine, i pulled the earth that originally went to the ICM back thru the harness, and used that to earth the primary coils, as that connects to the same ECU main earthing point.
many people just jam them all together and ground to the valve cover and it seems to work most of the time.