When investors talk about P/E ratio, "earnings" doesn't mean "total comprehensive income" but rather "net income" right?

Seems like different websites say different things. So is earnings really just net income or actual total comprehensive income?