You can’t bet the text won’t address this in a way that benefits the US...
https://www.congress.gov/crs-product/LSB11256
Per the above...
“...Section 1250A’s Prohibition of Unilateral Presidential Withdrawal from the North Atlantic Treaty
In Section 1250A of the 2024 NDAA (found at 22 U.S.C. ยง 1928f), Congress prohibited the President from “suspend[ing], terminat[ing], denounc[ing] or withdraw[ing] from the North Atlantic Treaty โฆ except by and with the advice and consent of the Senate, provided that two-thirds of the Senators present concur, or pursuant to an Act of Congress.” Congress further prohibited the use of any funds to “support, directly or indirectly, any decision to” withdraw from the North Atlantic Treaty without Senate advice and consent or statutory authorization. Although Congress has to some extent regulated the President’s withdrawal from a treaty in the past, Section 1250A is the first statute in which Congress has prohibited unilateral presidential withdrawal from a treaty....”
More...
“Codification
Section was enacted as part of the National Defense Authorization Act for Fiscal Year 2024, and not as part of the Mutual Security Act of 1954 which comprises this chapter.”