The quarterly input is net cash from financing activities, tagged NetCashProvidedByUsedInFinancingActivities in XBRL. Under ASC 230, financing activities cover getting resources from owners and giving them a return on or of their investment, and borrowing money and repaying it. That includes issuing and repurchasing stock, paying dividends, and drawing down or repaying debt. Interest payments are not financing cash flows under US GAAP; they are classified as operating.
Because 10-Q cash flow statements report the fiscal year to date rather than the single quarter, the trailing figure is usually built as the last annual total plus the current year-to-date amount minus the prior year's matching year-to-date amount. The fourth quarter on its own is the 10-K annual figure minus the third-quarter 10-Q's nine-month figure. Note that the XBRL element includes discontinued operations.
The total nets together very different decisions. A company that borrowed heavily to fund a buyback might show financing cash flow near zero, hiding both actions. Analysts therefore read the TTM total alongside its parts: TTM dividends paid, TTM net share repurchases, and net debt issuance. Divided by market capitalization and sign-reversed, the TTM financing total is one version of shareholder yield, the share of the company's value returned to investors over the year.